<!doctype html>
<html lang="zh-cmn-Hans">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>客户管理</title>
    <link href="https://cdn.bootcdn.net/ajax/libs/font-awesome/6.4.2/css/all.min.css" rel="stylesheet">
    <link rel="stylesheet" href="/static/weui/weui.min.css">
    <link rel="stylesheet" href="/static/weui/default.css"/>
</head>
<body>
<div class="page">
    <div class="page__bd_spacing">
        {% if errormsg %}
            <div role="alert" class="weui-information-bar weui-information-bar_warn-strong" id="msgAlert">
                <div class="weui-information-bar__hd">
                    <i class="weui-icon-outlined-warn"></i>
                </div>
                <div class="weui-information-bar__bd">
                    {{ errormsg }}
                </div>
                <div class="weui-information-bar__ft">
                    <button class="weui-btn_icon" id="msgAlertClose">关闭<i class="weui-icon-close-thin"></i></button>
                </div>
            </div>
        {% endif %}

        <div class="weui-cell card">
            <div class="weui-cell__hd">
                客户
            </div>
            <div class="weui-cell__ft">
                {{ client.name }}
            </div>
        </div>
        <div class="weui-cells card">
            <div class="weui-cell">
                <div class="weui-cell__hd">
                    拜访记录
                </div>
            </div>
            <div class="weui-cell">
                <div class="weui-cell__hd">
                    客户经理
                </div>
                <div class="weui-cell__ft">
                    {% for manager in managerLst %}
                        {{ manager.user.name }},
                    {% endfor %}
                </div>
            </div>
        </div>
        <div class="weui-cell card">
            <div class="weui-cell__hd">
                客户经理
            </div>
            <div class="weui-cell__ft">
                {% for manager in managerLst %}
                    {{ manager.user.name }},
                {% endfor %}
            </div>
        </div>
       <div class="buttonGroup">
        {% if not visitFlag %}
            <a href="/client/visit/create?client_id={{ client.id }}" role="button" class="weui-btn weui-btn_primary">发起拜访</a>
        {% endif %}
        {% if not managerFlag %}
            <a href="/client/client/bind?client_id={{ client.id }}" role="button"
               class="weui-btn weui-btn_default">绑定客户</a>
        {% endif %}
    </div>
    </div>
</div>
<!--
-->
<script type="text/javascript" src="/static/weui/jquery.min.js"></script>
<script type="text/javascript" src="/static/weui/weui.min.js"></script>
<script type="text/javascript" src="/static/weui/jweixin-1.0.0.js"></script>
</body>
</html>

